package com.xbao.service;

import com.xbao.model.PeriodRuleItem;
import com.xbao.model.req.PeriodRuleReq;
import com.xbao.model.vo.PeriodRuleVo;

import java.util.List;

/**
 * Created by qingshengzheng on 18/10/12.
 */
public interface PeriodRuleService {
    public void addPeriodRule(PeriodRuleReq periodRule);

    public void deletePeriodRule(Long rid);

    public void modifyPeriodRule(PeriodRuleReq periodRule);

    public List<PeriodRuleVo> queryPeriods(PeriodRuleReq periodRuleReq);

    public PeriodRuleVo detailPeriodRule(Long id);


    public void addPeriodRuleItem(PeriodRuleItem item);

    public void deletePeriodRuleItemByRuleId(Long rid);

    public void addPeriodRuleItems(List<PeriodRuleItem> items);

    public List<PeriodRuleItem> getItemsByRuleId(Long rid);
    public List<PeriodRuleItem> getItemByCid(Long cid);
    public List<PeriodRuleItem> getItemByUid(Long uid);



}
